-
The proxy object for the current map style.
MGLStyle provides a set of convenience methods for changing Mapbox default styles using
-[MGLMapView styleURL]. Learn more about Mapbox default styles.It is also possible to directly manipulate the current map style via
-[MGLMapView style]by updating the style’s data sources or layers.See moreNote
Wait until the map style has finished loading before modifying a map’s style via any of theMGLStyleinstance methods below. You can use the-[MGLMapViewDelegate mapView:didFinishLoadingStyle:]or-[MGLMapViewDelegate mapViewDidFinishLoadingMap:]methods as indicators that it’s safe to modify the map’s style.Declaration
Objective-C
@interface MGLStyle : NSObjectSwift
class MGLStyle : NSObject
-
Declaration
Objective-C
@interface MGLLight : NSObjectSwift
class MGLLight : NSObject
Install in Dash
Styling the Map Reference